
const script = document.createElement('script')

const serverHost = '${serverHost}';
script.onload = () => {
    const socket = io(serverHost + '?roomid=sync');
    socket.on('ctrl_c', (...a) => {
        ctrl_v(...a);
    })
    window.ctrl_c = function (data) {
        socket.emit('ctrl_c', data)
    }
}
script.async = true;
script.src = serverHost + '/socket.io/socket.io.js'
document.head.appendChild(script)